package com.meteor.service.impl;

import com.meteor.dao.TagMapper;
import com.meteor.pojo.Tag;
import com.meteor.service.TagService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class TagServiceImpl implements TagService {

    @Resource
    private TagMapper tagMapper;
    @Override
    public List<Tag> queryTags() {
        return tagMapper.selectTags();
    }

    @Override
    public int insert(Tag tag) {
        return tagMapper.insert(tag);
    }
}
